package org.tony.nio.demo;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.CharBuffer;

public class ByteBufferDemo
{

	public static void main(String[] args)
	{
		ByteBuffer b = ByteBuffer.allocate(8);
		b.putChar('a');
		System.out.println(b.order());
		System.out.println(ByteOrder.nativeOrder());
		char[] c = new char[100];
		CharBuffer cb = CharBuffer.wrap(c);

		System.out.println(cb.order());
	}

}
